package com.zs.backend.common.utils;

public class VerificationUtil {

    /**
     * 字符串是否是数字
     * @param str
     * @return
     */
    public static boolean isNumeric(String str) {
        if (str == null || str.isEmpty()) {
            return false;
        }
        return str.matches("-?\\d+(\\.\\d+)?");
    }
}
